home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / FIX500S.ZIP / TEST.ZIP / FIXTEST.DOC next >
Encoding:
Text File  |  1996-01-01  |  3.0 KB  |  66 lines

  1.                                                       fixtest.doc 1-96
  2.             
  3.             
  4.             
  5.                               FIX 5.XX PROOF TEST        Page 1 of 1
  6.  
  7.  
  8.            PURPOSE
  9.            -------
  10.             The central algorithm in FIX uses a buffer to find and
  11.             process strings in a continuous input stream of unlimited
  12.             length.  The technically inclined user will recognize the
  13.             potential for insidious undetected omission errors under
  14.             these circumstances.  The input stream must be processed
  15.             one block or record at a time.  But the target string may
  16.             be located anywhere in the input stream, without respect
  17.             to record boundaries.  What happens when the target string
  18.             spans two records?  If you are processing a delimited
  19.             string, what happens when the string falls at the begin-
  20.             ning or end of the record so that a possibly delimiting
  21.             character falls in an adjacent record?  The test data file
  22.             provided here enables the interested user to verify FIX
  23.             performance under these most challenging data conditions.
  24.             
  25.            TEST DESIGN
  26.            -----------
  27.             FIX and the test data file have been designed to assure
  28.             that every possible positional relationship between
  29.             findstring and the inter-record boundary can be tested.
  30.             The FIX processing record size is determined dynamically
  31.             at run time and varies from approximately 12K to 16K
  32.             depending on string sizes and wether the search is case
  33.             sensitive or not.  Record size is always an even number
  34.             that, to accommodate testing, can not be factored by 5.
  35.             Test data consists of a continuously repeating test
  36.             pattern that is 5 characters in length.  The FIX record
  37.             size together with the granularity of the repeating test
  38.             data guarantee that, over 6 buffer cycles, FIX will have
  39.             processed strings in every possible positional relation-
  40.             ship between the findstring and the inter-record boundary.
  41.             And at least 156 buffer cycles will be required to process
  42.             the 2.5M test file.
  43.             
  44.             Test Data File:      TESTDATA.TXT  2,500,001 bytes (1 eof)
  45.             Test Pattern:        "ABcd "  (not including quote marks)
  46.             Pattern Repetitions: 500,000
  47.             
  48.            TEST EXAMPLE
  49.            ------------
  50.             >fix  'ABcd '  'ABcdef '  testdata.txt  testdat2
  51.              TESTDATA.TXT  TESTDAT2  Occurrences replaced: 500,000
  52.             
  53.             >fix  'ef'  ''  testdat2  testdat3
  54.              TESTDAT2  TESTDAT3  Occurrences replaced: 500,000
  55.             
  56.             >comp  testdata.txt  testdat3                NovaLogic(TM)
  57.             Comparing TESTDATA.TXT and TESTDAT3          Beaverton, OR
  58.             Files compare OK                             (503)524-9184
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. ::
  66.